<!doctype html>
<html>
<head>
    <title>我的团员</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="/css/style.css?v=2">
    <link rel="stylesheet" href="/css/font-awesome.min-4.3.0.css">
	<script src="/js/jquery.min-2.1.3.js"></script>
</head>

<body>
		<div class="list-myorder">
			<ul class="ul-product" id="order_list">
				<!--{loop $myfans $one}-->
				<li>
					<span class="pic">
						<img src="{$one['avatar']}"></span>
					<div class="text">
						<span class="pro-name">昵称：{$one['username']}</span>
						<div class="pro-pric"><span>关注时间：</span>${date('Y-m-d',$one['create_time'])}</div>
						<div class="pro-pric"><span>推荐上级：</span>{$login_user['username']}</div>
					</div>
				</li>
				<!--{/loop}-->
			</ul>
		</div>
		
         <div>
		 <div class="center" id="center_pullup" style="display:none;">
		 <span><img class="img_rotate" src="/images/pull_loading_8eba142.png"/>
		 </span><span class="orders_text"></span>
		 </div>
		<script>
		var offset = 0;
		var _pa = 2;
		var is_can_next = 1;
		var cur_url = "{$cur_url}";
		function loaddata()
		{ 
			totalheight = parseFloat($(window).height()) + parseFloat($(window).scrollTop());     //浏览器的高度加上滚动条的高度 

			if ($(document).height() <= totalheight+200)     //当文档的高度小于或者等于总的高度的时候，开始动态加载数据
			{ 
				if(is_can_next == 1)//加载数据
				{
					is_can_next = 0;
					nextpage();
				}
			} 
		} 
		function nextpage()
		{	
			var best_url = cur_url+'?page='+_pa;
			$('#center_pullup').show();
			$.ajax(
				{ 
					url: best_url, 
					dataType: 'json', 
					success: function(result){
						if(result.ret>0){
							if(_pa != 1)
							{
								$('#center_pullup').hide();
							}
							//$('.nextpage').hide();	
							return false;
						}
						if(result.offset == offset)
						{
							$('#center_pullup').hide();
							return false;
						} else {
							offset = result.offset;
						}
						$('#order_list').append(result.html);
						$('#center_pullup').hide();
						_pa++;
						is_can_next = 1;
					}
				}
			);
		}

		$(function(){
			
			$(window).scroll( function() { 
				loaddata();
			}); 
			
		})
		</script>
	
  </div>
    <div style="height:58px;visibility:hidden "></div>
    <!--{include footer}-->




